﻿using System;
using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Markup;
using System.Windows.Media;
using CustomControl;
using GalaSoft.MvvmLight.Messaging;
using ListViewDragDrop.Controls.Utilities;
using ListViewDragDrop.ServiceProviders.UI;
//using TeacherLeftHand.Frameworks.ListViewDragDropFramework;
using TeacherLeftHand.Model;
using TeacherLeftHand.Util;
using TeacherLeftHand.ViewModel;

namespace TeacherLeftHand.View
{
    /// <summary>
    /// Description for TeachingMethodListView.
    /// </summary>
    public partial class TeachingMethodListView
    {
        /// <summary>
        /// Initializes a new instance of the TeachingMethodListView class.
        /// </summary>
        public TeachingMethodListView()
        {
            InitializeComponent();
            Loaded += TeachingMethodListView_Loaded;
        }

        void TeachingMethodListView_Loaded(object sender, RoutedEventArgs e)
        {

            #region Register DragManager

            //var listOfTMAction = new ObservableCollection<TeachingMethodAction>
            //                         {new TeachingMethodAction(), new TeachingMethodAction()};
            // Data Provider
            //var panelDataProvider = new  PanelDataProvider<Panel, ContentControl>("CanvasButtonObject",false);
            //var listDataProvider = new ListBoxDataProvider<ItemsControl, FrameworkElement>("ListBoxItemObject",false);

            //this.listTeachingMethod.ItemsSource = listOfTMAction;
            // DragManager
            //var dragHelperCanvas0 = new DragManager(this.listTeachingMethod,
            //     new IDataProvider[] {
            //        listDataProvider,
            //    });

            var dragdrop = new ListViewDragManager<TeachingMethod>(this.listTeachingMethod);
            #endregion
        }

    }
}